package com.molichuxing.gateway.bff.order.services.impl;

import com.molichuxing.gateway.bff.order.convertor.Convert;
import com.molichuxing.gateway.bff.order.entity.response.OrderRenegeVo;
import com.molichuxing.gateway.bff.order.services.OrderRenegeBffService;
import com.molichuxing.services.business.dto.response.OrderRenegeBizDto;
import com.molichuxing.services.business.service.OrderRenegeBizService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;


@Service("orderRenegeBffService")
public class OrderRenegeBffServiceImpl implements OrderRenegeBffService {
    private static final Logger logger = LoggerFactory.getLogger(OrderBffServiceImpl.class);

    @Resource
    private OrderRenegeBizService orderRenegeBizService;

    /**
     * 查询退租信息
     *
     * @param orderCode
     * @param userId
     * @return
     */
    @Override
    public OrderRenegeVo getOrderRenege(Long orderCode, Integer userId) {
        OrderRenegeBizDto orderRenege = orderRenegeBizService.getOrderRenege(orderCode, userId);
        return Convert.toOrderRenegeVo(orderRenege);
    }


}
